<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'cate-form',
    'enableClientValidation'=>false,
    'action'=>$this->createUrl('/cate/create')
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'子栏目名称'); ?>
		<?php echo $form->textField($model,'name',array('size'=>40,'maxlength'=>40)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

		<?php echo $form->textField($model,'pid', array('style'=>'display:none;')); ?>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '新增子栏目' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->